<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .primary {
        color: red;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <!-- <input type="text" v-bind:value="'jack'" /> -->
      <input type="text" v-bind:[x]="'jack'" />
      <button @[y]="say">save</button>
      <!-- <button @['cli'+'ck']="say">save</button> -->
    </div>
    <script type="module">
      import { createApp } from "./vue.esm-browser.js";
      const app = createApp({
        data() {
          return {
            x: "value",
            y: "click",
          };
        },
        methods: {
          say() {
            alert("hello");
          },
        },
      });
      app.mount("#app"); //挂载
    </script>
  </body>
</html>
